package com.qinyi.admin.controller;

import com.qinyi.common.controller.BaseController;
import com.qinyi.framework.shiro.util.ShiroUtils;
import com.qinyi.system.domin.SysUser;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author wangan on 2019/6/5
 * @description
 */
@Controller
@RequestMapping("/system/user/profile")
public class SysProfileController extends BaseController {

	private static final Logger log = LoggerFactory.getLogger(SysProfileController.class);
	public static final String prefix = "system/user/profile";

	/**
	 * 个人信息
	 *
	 * @param map
	 * @return
	 */
	@GetMapping
	public String profile(ModelMap map) {
		SysUser user = ShiroUtils.getSysUser();
		map.put("user", user);
		return prefix + "/profile";
	}

}
